package com.springboot.study.tests.imports;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.DeferredImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @Author: guodong
 * @Date: 2021/11/17 18:03
 * @Version: 1.0
 * @Description:
 */
public class CustomizeDeferredImportSelector implements DeferredImportSelector {

    Logger logger = LoggerFactory.getLogger(this.getClass().getName());

    @Override
    public String[] selectImports(AnnotationMetadata annotationMetadata) {
        logger.info("selectImports : " + this.getClass().getSimpleName());
        return new String[]{"com.springboot.study.tests.imports.CustomizeServiceImpl3"};
    }


}